package cn.kgm.lamda;


import java.util.Collections;
import java.util.List;
import java.util.Optional;

/**
 * Create by kappi on
 * 2021/11/12/012 11:01
 */
public class LambdaTes {
    public static void main(String[] args) throws Exception {
        List<String> list = Collections.singletonList("a");
        Optional.of(list)
//                .filter(CollectionUtils::isEmpty)
                .orElseThrow(Exception::new);
    }
}
